package cn.zsb.dao;

import org.apache.ibatis.annotations.Param;
import cn.zsb.entity.*;

import java.util.Date;
import java.util.List;

public interface AdvtiseDao {
    List<Advtise> findAll();
    int add(Advtise adv);
    int update(Advtise adv);
    int del(long id);
    Advtise get(long id);
    int checkurl(@Param("url") String url, @Param("id") long id);
    List<Advtise> search1(@Param("title") String title, @Param("start") Date start, @Param("end") Date end, @Param(
            "pageNo") int pageNo, @Param("pageSize") int pageSize);
    int findTotal(@Param("title") String title, @Param("start") Date start, @Param("end") Date end);
}
